#ifndef PUBLISHRES_H
#define PUBLISHRES_H

#include <QObject>
#include <QWidget>
#include <QMouseEvent>
#include <QString>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QSpacerItem>
#include <QLabel>
#include <QTextBrowser>
#include <QDebug>
#include <QTextEdit>
#include <QLineEdit>
#include <QPushButton>
#include <QFileDialog>
#include <QDateTime>
#include <QComboBox>

class PublishRes : public QWidget
{
    Q_OBJECT
public:
    explicit PublishRes(QWidget *parent = nullptr);
private:
    QPushButton *btnSelect;
    QPushButton *btnPublish;
    QTextEdit *textContent;
    QComboBox *comboBoxPay;
    QComboBox *comboBoxType;
    QString fileName;
    QString fileContent;
    qint64 fileSize;
    int isPay = 0;
    QString fileType;

signals:
    void signalPublishRes(QMap<QString, QString> mapInfo);
public slots:
    void slotBtnSelectRes();
    void slotBtnPublishRes();
    void slotSetPay(int pay);
    void slotSetType(int idx);
};

#endif // PUBLISHRES_H
